package com.charge;

class SingletonThree{
    private static volatile SingletonThree instance;
    private SingletonThree(){}
    public static SingletonThree getInstance(){
        if(instance == null){
            synchronized(SingletonThree.class){
                if(instance == null)
                    instance = new SingletonThree();
            }
        }
        return instance;
    }
}

